package org.zasadnyy.redlions.players.server.converters;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.zasadnyy.redlions.players.server.model.TournamentObject;
import org.zasadnyy.redlions.players.shared.model.TournamentItem;

import com.google.appengine.api.datastore.Key;

public interface TournamentsConverter {

	TournamentObject toObject(TournamentItem item);
	
	TournamentItem toItem(TournamentObject object);

	Map<Integer, List<TournamentItem>> toItemList(Set<Key> objects);

	Set<Key> toObjectList(Map<Integer, List<TournamentItem>> map);
	
	List<TournamentItem> toItemList(List<TournamentObject> objects);

	
}
